package test.t1;

import java.awt.image.BufferedImage;

/**
 * 验证码实体：包含图片和文本
 */
public class Captcha {
    private String text;        // 验证码文本
    private BufferedImage image; // 验证码图片

    public Captcha(String text, BufferedImage image) {
        this.text = text;
        this.image = image;
    }

    // Getter and Setter
    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public BufferedImage getImage() {
        return image;
    }

    public void setImage(BufferedImage image) {
        this.image = image;
    }
}